#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

void printarr(int* p,int len)
{
	for (int i = 0; i < len; i++)
	{
		printf("%d ", *(p + i));
	}
}

int main()
{
	int arr[] = { 1,2,3,4,5,6,7,8,9,10 };
	int len = sizeof(arr) / sizeof(arr[0]);
	printarr(arr,len);

	return 0;
}